package com.abc.invoke.server.service;

import java.util.concurrent.atomic.AtomicLong;

import com.abc.invoke.bean.User;

public class UserSession {

	private final User user;
	private final AtomicLong usage=new AtomicLong(0);
	
	public UserSession(User user){
		this.user=user;
	}
	
	public User getUser(){
		return this.user;
	}
	
	public void incrementUsage(){
		this.usage.incrementAndGet();
	}
	
	public void decrementUsage(){
		this.usage.decrementAndGet();
	}
	
}
